package com.finance.console.entity;

import java.math.BigDecimal;
import java.util.Date;

public class Budget {
    // 对应表中字段：budgetId (主键，自增)
    private int budgetId;
    // 对应表中字段：userId (外键，关联用户)
    private int userId;
    // 对应表中字段：category (预算分类)
    private String category;
    // 对应表中字段：amount (预算金额，decimal类型)
    private BigDecimal amount;
    // 对应表中字段：cycle (周期，如"月"、"季度")
    private String cycle;
    // 对应表中字段：startDate (开始日期)
    private Date startDate;
    // 对应表中字段：endDate (结束日期)
    private Date endDate;

    // 必须添加所有字段的getter和setter（解决之前"无法解析方法"的错误）
    public int getBudgetId() {
        return budgetId;
    }

    public void setBudgetId(int budgetId) {
        this.budgetId = budgetId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getCycle() {
        return cycle;
    }

    public void setCycle(String cycle) {
        this.cycle = cycle;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
}